﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainPage.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title></title>

    <link rel="Stylesheet" type="text/css" href="style.css"/>
   
</head>
<body>
    <form id="form1" runat="server">

 <div>
     <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
     </telerik:RadScriptManager>
      <div id="container">
        <div id="header">
            <div id="logo">logo</div>
            <div id="title">TITLE</div>
        </div>
        <div id="content" class="table">
            <div class="row">
                <div id="leftContent" class="cell">menu<telerik:RadListView ID="RadListView1" 
                        runat="server" DataSourceID="EntityDataSource2" 
                        Skin="WebBlue">
                    <LayoutTemplate>
                        <div class="RadListView RadListView_WebBlue">
                            <table cellspacing="0" style="width:100%;">
                                <thead>
                                    <tr class="rlvHeader">

                                        <th colspan=2>
                                            Categories</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ID="itemPlaceholder" runat="server">
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr class="rlvI">
                            <td>
                                <asp:Button ID="SelectButton" runat="server" CausesValidation="False" 
                                    CommandName="Select" CssClass="rlvBSel" Text=" " ToolTip="Select" />
                            </td>
                            <td>
                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="rlvA">
                            <td>
                                <asp:Button ID="SelectButton" runat="server" CausesValidation="False" 
                                    CommandName="Select" CssClass="rlvBSel" Text=" " ToolTip="Select" />
                            </td>
                            <td>
                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <EditItemTemplate>
                        <tr class="rlvIEdit">
                            <td colspan="2">
                                <table cellspacing="0" class="rlvEditTable">
                                    <tr>
                                        <td>
                                            <asp:Label ID="NameLabel2" runat="server" AssociatedControlID="NameTextBox" 
                                                Text="Name"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="NameTextBox" runat="server" CssClass="rlvInput" 
                                                Text='<%# Bind("Name") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                                CssClass="rlvBUpdate" Text=" " ToolTip="Update" />
                                            <asp:Button ID="CancelButton" runat="server" CausesValidation="False" 
                                                CommandName="Cancel" CssClass="rlvBCancel" Text=" " ToolTip="Cancel" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <tr class="rlvIEdit">
                            <td colspan="2">
                                <table cellspacing="0" class="rlvEditTable">
                                    <tr>
                                        <td>
                                            <asp:Label ID="NameLabel2" runat="server" AssociatedControlID="NameTextBox" 
                                                Text="Name"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="NameTextBox" runat="server" CssClass="rlvInput" 
                                                Text='<%# Bind("Name") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Button ID="PerformInsertButton" runat="server" CommandName="PerformInsert" 
                                                CssClass="rlvBAdd" Text=" " ToolTip="Insert" />
                                            <asp:Button ID="CancelButton" runat="server" CausesValidation="False" 
                                                CommandName="Cancel" CssClass="rlvBCancel" Text=" " ToolTip="Cancel" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </InsertItemTemplate>
                    <EmptyDataTemplate>
                        <div class="RadListView RadListView_WebBlue">
                            <div class="rlvEmpty">
                                There are no items to be displayed.</div>
                        </div>
                    </EmptyDataTemplate>
                    <SelectedItemTemplate>
                        <tr class="rlvISel">
                            <td>
                                <asp:Button ID="DeselectButton" runat="server" CausesValidation="False" 
                                    CommandName="Deselect" CssClass="rlvBSel" Text=" " ToolTip="Deselect" />
                            </td>
                            <td>
                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
                            </td>
                        </tr>
                    </SelectedItemTemplate>
                    </telerik:RadListView>
                </div>
                <div id="mainContent" class="cell">
                Enter the id of a card to get its description. 
     
                    
                    <telerik:RadTextBox ID="RadTextBox1" Runat="server">
                    </telerik:RadTextBox>
     
                    
                </div>
                
                <div id="rightContent" class="cell">rightBar</div>
            </div>
        </div>
        <div id="footer">footer</div>
    </div>
    </div>
    <asp:EntityDataSource ID="EntityDataSource2" runat="server" 
        ConnectionString="name=GreetingCardsAlbumEntities" 
        DefaultContainerName="GreetingCardsAlbumEntities" EnableFlattening="False" 
        EntitySetName="Categories" Select="it.[Name]">
    </asp:EntityDataSource>
    </form>
</body>
</html>

